package com.zou.study.spring.xml;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.zou.study.spring.common.Person;

public class ClassPathXmlTests {

    public static void main(String[] args) {

        final String configLocation = "spring-bean.xml";

        try (final ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(configLocation)) {
            Person person = ctx.getBean(Person.class);
            System.out.println("\n" + person + "\n");
        }

    }

}
